<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{$seo[keywords]}" />
<meta name="description" content="{$seo[description]}" />
<title>{$page_title}</title>
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/global.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/style.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/style.head_{$mymps_global[head_style]}.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/coupon.head_{$mymps_global[head_style]}.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/plugin/coupon/template/style.css" />
<link rel="stylesheet" href="{$mymps_global[SiteUrl]}/template/default/css/pagination2.css" />
<script src="{$mymps_global[SiteUrl]}/template/global/noerr.js" type="text/javascript"></script>
<script src="{$mymps_global[SiteUrl]}/template/default/js/global.js" type="text/javascript"></script>
<script src="{$mymps_global[SiteUrl]}/template/default/js/jquery.min.js" type="text/javascript"></script>
    <script src="{$mymps_global[SiteUrl]}/template/global/lang.js" type="text/javascript"></script>
    <script >$(document).ready(function () {zh_tran('t');})</script>
</head>

<body class="{$mymps_global[cfg_tpl_dir]} {$mymps_global[screen_search]} bodybg{$mymps_global[cfg_tpl_dir]}{$mymps_global[bodybg]}">
	{mytemplate inc_head}
	<div class="body1000">
    <div class="location">{$location}</div>
    <div class="indexcontent mt5">
    	<div class="cleft">
        	<div class="categoryclass">
            	<div class="hd"><span>优惠券(共{$count[total]}张)</span></div>
                <div class="bd">
                	<div class="subtitle">按分类选择：</div>
                    <div class="li">
						{loop $coupon_class $class}
                        <li {if $cate_id == $class[cate_id]}class="current"{/if}><a href="{$class[cate_uri]}">{$class[cate_name]}</a> {$count[$class[cate_id]]}</li>
                        {/loop}
                    </div>
					{if $area_class}
                    <div class="clear"></div>
                    <div class="subtitle">按区域选择：</div>
                    <div class="li">
                       {loop $area_class $v}
                       <li {if $v[select] == 1}class="current"{/if}><a href="{$v[uri]}">{$v[areaname]}</a></li>
                       {/loop}
                    </div>
					{/if}
                </div>
            </div>
            <div class="clear"></div>
            <div class="controlcoupon">
                <div class="button"><button value="上传优惠券" class="fbyhq" onclick="window.open('{$mymps_global[SiteUrl]}/member/index.php?m=coupon&ac=detail');"></button> <button value="管理优惠券" class="glyhq" onclick="window.open('{$mymps_global[SiteUrl]}/member/index.php?m=coupon');"></button>
                </div>
                <div class="clearfix"></div>
                <div class="tel">
                	合作热线：<span>{$mymps_global[SiteTel]}</span>
                </div>
            </div>
        </div>
        <div class="cright">
        	<div class="modulelist">
            	<div class="modulehd">
                    <div class="hdleft"><span>{$currentlocate}</span></div>
                	<div class="hdright"><span>排序按：</span>
                    {loop $orderby_url $v}
                    <a href="{$v[url]}" {if $v[selected] == 1}class="current"{/if}>{$v[name]}</a>
                    {/loop}
                    </div>
                </div>
                <div class="clearfix"></div>
            	<div class="modulebd">
                	{loop $list $v}
                    <div class="coupon">
                    	<div class="preimg">
						{if $v[sup]}<sup>{$v[sup]}折</sup>{/if}
						<a href="{$v[uri]}" target="_blank"><img src="{$mymps_global[SiteUrl]}{$v[pre_picture]}"></a>
                        </div>
                        <div class="middle">
                        	<div class="title"><a href="{$v[uri]}" target="_blank">{$v[title]}</a></div>
                            <div class="introduction">{echo cutstr($v[des],150)}</div>
                            <div class="enddate">开始日期：{echo GetTime($v[begindate],'Y年m月d日')}</div>
                            <div class="enddate">截止日期：{echo GetTime($v[enddate],'Y年m月d日')}</div>
                        </div>
                        <div class="fordetail">
                        	<div class="detail"><button class="ckxq" value="查看详情" onclick="window.open('{$v[uri]}')"></button></div>
                            <div class="print">{$v[prints]}人打印</div>
                        </div>
                    </div>
                    {/loop}
                    <div class="pagination">{$page_view}</div>
                    
                </div>
            </div>
        </div>
	</div>
	<div class="clear"></div>
	{mytemplate inc_foot}
	</div>
</div>

</body>
</html>